export interface TodoItem{
    id:number,
    text:string,
    done:boolean
}
export interface TodoArr extends Array<TodoItem>{
    [index:number]:TodoItem
}
export interface TodoListProp{
    todoarray:TodoArr,
    setTodoArray:(t:TodoArr)=>void
}
export interface TodoHeadProp{
    additem:(str:string)=>void
}
export interface TodoTabProp{
    todoarray:TodoArr,
    status:number,
    setStatus:(t:number)=>void
}
/**
 * react 
 * vue 
 * 从数据的角度去构建应用. typescript就是来数据类型，进行数据验证.
 * 
 */
//演示Context传值
 export interface ContextD {
    money: string,
    addMoney: (m: string) => void,
}